<html>

<head>
    <script src="jquery-3.2.1.min.js"></script>
    <script>
        $(function () {
            var arr = new Array();
            $('select').change(function () {
                var currentId = $(this).attr('id');
                if (arr.indexOf(currentId) == -1) {
                    arr.push(currentId);
                }
                $('#dv_show').empty();
                $('#dv_show').append(arr.join());

            });
            $('button:first').click(function(){
                $('#hid_FuncTarg').val(arr.join());
                $('#dv_show').append($('#hid_FuncTarg').val());
            });
            $('button:eq(1)').click(function(){
                 var str='555';
                 $('input[type=password]').val(str);
            });
        });
    </script>
    <style>
        .dv_show {
            width: 400px;
            height: 80px;
            font-size: 20px;
            background-color: pink;
        }
    </style>
</head>
<div>
    <input type="hidden" id="hid_FuncTarg" />
    <div id='dv_show' class="dv_show"></div>
    <table>
        <thead>
            <td>序号</td>
            <td>名称</td>
            <td>对应字段</td>
        </thead>
        <tr>
            <td>1</td>
            <td><input type="text" value="标示" /></td>
            <td><select id='cp_asm_a1_10'>
                            <option>asm_a1_10</option>
                            <option>asm_a1_20</option>
                        </select>
            </td>
        </tr>
        <tr>
            <td>2</td>
            <td><input type="text" value="批次" /></td>
            <td><select id='cp_asm_a1_20'>
                                <option>asm_a1_10</option>
                                <option>asm_a1_20</option>
                            </select>
            </td>
        </tr>
    </table>
    <input type="password"/>
    <button>保存</button>
    <button>判断密码文本</button>
</div>

</html>